<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:extpoint="http://www.ruijie.com.cn/faces/extension"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	xmlns:rich="http://richfaces.org/rich"
	template="/layout/contentLayout.xhtml">

	<ui:param name="param_navigationUrl" value="/luyuan/sms/navigationSms.jsf" /> 
	<ui:param name="param_pageTitle" value="#{messages.luyuan_crm_sms}" />
	<ui:param name="id" value="luyuan_sms_setting" />

	<ui:define name="road">
		<span>#{messages.luyuan_crm_sms}</span>
	</ui:define>
	<ui:define name="content">
		<ui:decorate template="/components/formTemplate.xhtml">
			<ui:param name="param_headerTitle" value="#{messages.luyuan_crm_sms}" />
			<ui:param name="id" value="serial" />
			<ui:param name="param_column" value="double" />
			<ui:define name="fields">
				<h:panelGroup id="smtpSetting_primary">
					<rg:inputText id="username" label="#{messages.luyuan_crm_sms_username}" required="true"
						value="#{smsAction.username}" />
					<rg:inputText id="password" label="#{messages.luyuan_crm_sms_password}" required="true"
						value="#{smsAction.password}" />
					<rg:inputText id="signature" label="签名" required="true"
						value="#{smsAction.signature}" />
				</h:panelGroup>
			</ui:define>
			<ui:define name="panelButton">
				<h:commandButton styleClass="button largest"
					action="#{smsAction.update()}" value="#{messages.ruijie_sms_save}" />
			</ui:define>
		</ui:decorate>
		
		<ui:decorate template="/components/formTemplate.xhtml">
			<ui:param name="param_headerTitle" value="短信测试" />
			<ui:param name="id" value="smsTest" />
			<ui:param name="param_column" value="double" />
			<ui:define name="fields">
				<h:panelGroup id="smtpSetting_primary">
					<rg:inputText id="toPhone" label="接收手机号" required="true"
						value="#{smsAction.toPhone}" />
				</h:panelGroup>
			</ui:define>
			<ui:define name="panelButton">
				<h:commandButton styleClass="button largest"
					action="#{smsAction.sendTest()}" value="#{messages.ruijie_sms_send_test}" />
			</ui:define>
		</ui:decorate>
		 
		<ui:decorate template="/components/formTemplate.xhtml">
			<ui:param name="param_headerTitle" value="短信模板设置" />
			<ui:param name="param_column" value="single" />
			<ui:define name="fields">
				<rg:inputArea id="smsContent1" label="确认发货短信" required="true"
						value="#{smsAction.smsContent1}" textStyle="width:512px;height:64px;"/>
				<rg:inputArea id="smsContentChangeExpress" label="修改快递短信" required="true"
						value="#{smsAction.smsContentChangeExpress}" textStyle="width:512px;height:64px;"/>
				<rg:inputArea id="smsContent2" label="确认收货短信" required="true"
					value="#{smsAction.smsContent2}"  textStyle="width:512px;height:64px;"/>
				<rg:inputArea id="smsContent3" label="指派专业短信" required="true"
					value="#{smsAction.smsContent3}"  textStyle="width:512px;height:64px;"/>
			</ui:define>
			<ui:define name="panelButton">
				<h:commandButton styleClass="button largest"
					action="#{smsAction.updateSmsContent()}" value="#{messages.ruijie_sms_save}" />
			</ui:define>
		</ui:decorate>
	</ui:define>
</ui:composition>